/**
 * @file win_uart.h
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2024-01-30
 * 
 * @copyright Copyright (c) 2024
 * 
 */
#ifndef __WIN_UART_H__
#define __WIN_UART_H__

#ifdef __cplusplus
extern "C" {
#endif

/*引入lr驱动模板*/
#include <lr_base_diver.h>


/**
 * @brief  win窗口显示的私有接口
 * 
 */
typedef struct  
{
    int (*tschar) (void);
    void (*usdelay)(unsigned int time);
}user_win_uart_t;

/**
 * @brief win的屏幕显示
 * 
 */
typedef struct 
{
    lr_diver_ops_t ops;
    user_win_uart_t user;
}win_uart_t;

extern win_uart_t* lr_get_win_uart_handle(void* param);
extern int lr_close_win_uart(win_uart_t* puart);

#ifdef __cplusplus
}
#endif

#endif/*__WIN_UART_H__*/